#pragma once

#define MAX_SCREEN_CX			1024
#define MAX_SCREEN_CY			768

#define SCALE_VALUE_CX(x)		(x*theApp.dwWinWidth/MAX_SCREEN_CX)
#define SCALE_VALUE_CY(y)		(y*theApp.dwWinHeight/MAX_SCREEN_CY)

#define MAINFRAME_BAR			82
#define MAINFRAME_BAR_S			68

#define CX_PB_SPEED				94
#define CY_PB_SPEED				64
#define CX_PB_NEEDLE			60
#define CY_PB_NEEDLE			32

#define CX_MENU					120
#define CY_MENU					24

#define CX_SYSTEMMENU_BTN		21
#define CY_SYSTEMMENU_BTN		21

#define CX_PLAYER				300
#define CY_PLAYER				52

#define CX_TACHOMETER			110
#define CY_TACHOMETER			63

#define CX_VOLUME_BAR			100
#define CY_VOLUME_BAR			28

#define CX_BTN_OPEN				58
#define CY_BTN_OPEN				20

#define CX_BTN_PLAYER_LARGE		52
#define CY_BTN_PLAYER_LARGE		51
#define CX_BTN_PLAYER_SMALL		44
#define CY_BTN_PLAYER_SMALL		51

#define CX_GSEN_GRAPH			640
#define CY_GSEN_GRAPH			16

#define CY_WIN_GPS_HEIGHT		140
#define CY_WIN_GPS_HEIGHT_S		26
#define CY_WIN_GSEN_HEIGHT		50

#define CX_WIN_RIGHT_MENU		364
#define CX_WIN_RIGHT_GAP		374

#define CX_GAP					1
#define CY_GAP					1

#if (FALSE)
#define CX_FRONT_VIEW			800
#define CY_FRONT_VIEW			450

#define CX_REAR_VIEW			288
#define CY_REAR_VIEW			162

#define CX_MENU_RIGHT			288
#else
#define CX_FRONT_VIEW			768
#define CY_FRONT_VIEW			432

#define CX_REAR_VIEW			320
#define CY_REAR_VIEW			180

#define CX_MENU_RIGHT			320
#endif

#define CY_TITLE_BAR			23
#define CY_SEARCH_OPTION		40

//WndGps
#define TEXT_BOX_LEFT			80
#define TEXT_BOX_RIGHT			78

#define CX_TAB_BUTTON			70
#define CY_TAB_BUTTON			26

#define CX_LIST_BUTTON			24
#define CY_LIST_BUTTON			21

#define CY_TIMEBAR				13


//////////////////////////////////////////////////////////////////////////
//define colors
#define COLOR_WHITE				RGB(255, 255, 255)
#define COLOR_GRAY_LITE			RGB(200, 200, 200)
#define COLOR_GRAY				RGB(128, 128, 128)		
#define COLOR_YELLOW_LITE		RGB(255, 255, 128)

#define COLOR_GENERAL_BK		RGB(40, 50, 70)

#define COLOR_GPS_TEXT_BK		RGB(61, 69, 96)
#define COLOR_GPS_MARK			RGB(50, 120, 250)

#define COLOR_GSEN_BK			RGB(10, 20, 30)
#define COLOR_GSEN_TITLE		RGB(12, 95, 250)

#define COLOR_GSEN_X			RGB(255, 0, 255)
#define COLOR_GSEN_Y			RGB(255, 255, 0)
#define COLOR_GSEN_Z			RGB(0, 255, 255)

#define COLOR_GSEN_X_LITE		RGB(255, 128, 255)
#define COLOR_GSEN_Y_LITE		RGB(255, 255, 128)
#define COLOR_GSEN_Z_LITE		RGB(128, 255, 255)

#define COLOR_LIST_BK			RGB(23, 28, 47)
#define COLOR_SEARCH_OPT_BD		RGB(128, 128, 128)

#define COLOR_LIST_INDI			RGB(115, 123, 165)

#define END_OF_OPTION_FILE		_T("End Of Option File")


enum _TAG_BMP_INFO
{
	biBackground = 0,
	biFileOpen_normal,
	biFileOpen_in_focus,
	biFileOpen_selected,
	biFileOpen_disable,
	biDelete_normal,
	biDelete_in_focus,
	biDelete_selected,
	biDelete_disable,
	biExit_normal,
	biExit_in_focus,
	biExit_selected,
	biExit_disabled,
	biMax_normal,
	biMax_in_focus,
	biMax_selected,
	biMax_disabled,
	biRestoreFM_normal,
	biRestoreFM_in_focus,
	biRestoreFM_selected,
	biRestoreFM_disabled,
	biMin_normal,
	biMin_in_focus,
	biMin_selected,
	biMin_disabled,
	biFull_normal,
	biFull_in_focus,
	biFull_selected,
	biFull_disabled,
	biRestoreFF_normal,
	biRestoreFF_in_focus,
	biRestoreFF_selected,
	biRestoreFF_disabled,
	biSystemMenuPanel,
	biPrint_normal,
	biPrint_in_focus,
	biPrint_selected,
	biPrint_disabled,
	biSetup_normal,
	biSetup_in_focus,
	biSetup_selected,
	biSetup_disabled,
	biBackup_normal,
	biBackup_in_focus,
	biBackup_selected,
	biBackup_disabled,
	biViewer_normal,
	biViewer_in_focus,
	biViewer_selected,
	biViewer_disabled,
	biMenuOpen_normal,
	biMenuOpen_in_focus,
	biMenuOpen_selected,
	biMenuOpen_disabled,
	biMenuDel_normal,
	biMenuDel_in_focus,
	biMenuDel_selected,
	biMenuDel_disabled,

	biPlayForward_normal,
	biPlayForward_in_focus,
	biPlayForward_selected,
	biPlayForward_disabled,
	biPause_normal,
	biPause_in_focus,
	biPause_selected,
	biPause_disabled,
	biPlayBackward_normal,
	biPlayBackward_in_focus,
	biPlayBackward_selected,
	biPlayBackward_disabled,
	biStop_normal,
	biStop_in_focus,
	biStop_selected,
	biStop_disabled,
	biStepForward_normal,
	biStepForward_in_focus,
	biStepForward_selected,
	biStepForward_disabled,
	biStepBackward_normal,
	biStepBackward_in_focus,
	biStepBackward_selected,
	biStepBackward_disabled,
	biStepForward_k_normal,
	biStepForward_k_in_focus,
	biStepForward_k_selected,
	biStepForward_k_disabled,
	biStepBackward_k_normal,
	biStepBackward_k_in_focus,
	biStepBackward_k_selected,
	biStepBackward_k_disabled,
	biNextFile_normal,
	biNextFile_in_focus,
	biNextFile_selected,
	biNextFile_disabled,
	biPrevFile_normal,
	biPrevFile_in_focus,
	biPrevFile_selected,
	biPrevFile_disabled,

	biPBSpeed_bk,
	biPBSpeed_x1_4,
	biPBSpeed_x1_2,
	biPBSpeed_x1,
	biPBSpeed_x2,
	biPBSpeed_x4,

	biVol_bk,
	biVol_slider,
	biVol_thumb,

	biSpeedometer_bk,

	biTimeBar_left_disabled,
	biTimeBar_right_disabled,
	biTimeBar_mid_disabled,
	biTimeBar_left_enabled,
	biTimeBar_right_enabled,
	biTimeBar_mid_enabled,
	biTimeBar_thumb,

	biTabTime_unchecked,
	biTabTime_checked,
	biTabTime_disabled,
	biTabEvent_unchecked,
	biTabEvent_checked,
	biTabEvent_disabled,

	biOptNormal_unchecked,
	biOptNormal_checked,
	biOptNormal_disableded,
	biOptEvent_unchecked,
	biOptEvent_checked,
	biOptEvent_disableded,
	biOptParking_unchecked,
	biOptParking_checked,
	biOptParking_disableded,
	biOptManual_unchecked,
	biOptManual_checked,
	biOptManual_disableded,

	biGSenGraph_bk,
	biGSenGraph_indi,
	biGSenCoordi,
	biRadio_unchecked,
	biRadio_checked,
	biRadio_disabled,

	biGpsNormal_normal,
	biGpsNormal_InFocus,
	biGpsNormal_Selected,
	biGpsNormal_Disabled,
	biGpsHide_normal,
	biGpsHide_InFocus,
	biGpsHide_Selected,
	biGpsHide_Disabled,
	biGpsLarge_normal,
	biGpsLarge_InFocus,
	biGpsLarge_Selected,
	biGpsLarge_Disabled,

	biScrl_v_top,
	biScrl_v_bottom,
	biScrl_v_uparrow,
	biScrl_v_downarrow,
	biScrl_v_span,
	biScrl_v_thumb,

	biScrl_h_leftarrow,
	biScrl_h_rightarrow,
	biScrl_h_span,
	biScrl_h_thumb,

	biList_v_border,
	biList_h_border,
	biList_header_start,
	biList_header_end,
	biList_header_span,
	biList_checkbox,
	biList_checkbox_s,

	biPB_slower_normal,
	biPB_slower_in_focus,
	biPB_slower_selected,
	biPB_slower_disabled,
	biPB_faster_normal,
	biPB_faster_in_focus,
	biPB_faster_selected,
	biPB_faster_disabled,

	biOptBG,
	biListBG,
	biMapBG,
	biGSenGraphBG,
	biGSenBG,

	biLogo,
	biLogo_rear,
	biSetupMain,
	biBackground_full,
	biTitleBarLogo,
	MAX_BMPINFO,
};

enum _TAG_WND_POS
{
	wpBackground = 0,
	wpRoundRgn,
	wpSystemMenu,
	wpBtnFileOpen,
	wpBtnDelete,
	wpTab,
	wpTabTime,
	wpTabEvent,
	wpOpt,
	wpOptBG,
	wpListNormal,
	wpListLarge,
	wpListHide,
	wpMapNormal,
	wpMapLarge,
	wpMapHide,
	wpMapView,

	wpGpsNormal,
	wpGpsLarge,
	wpGpsView,
	wpGpsTextBox,
	wpGpsBtnLarge,
	wpGpsBtnNormal,
	wpGpsBtnHide,

	wpPlaybackCtrl,
	wpPB_playFwd,
	wpPB_playBwd,
	wpPB_StepFwd,
	wpPB_StepBwd,
	wpPB_StepFwd_k,
	wpPB_StepBwd_k,
	wpPB_Pause,
	wpPB_Stop,
	wpPB_NextFile,
	wpPB_PrevFile,

	wpMenuButton,
	wpMenu_print,
	wpMenu_backup,
	wpMenu_setup,
	wpMenu_info,
	wpMenu_open,
	wpMenu_delete,

	wpPBSpeed,
	wpPBSpeed_bk,
	wpPBSpeed_stat,
	wpPBSpeed_slower,
	wpPBSpeed_faster,

	wpVolume,
	wpVolumeSlider,
	wpSpeedometer,

	wpListTime,
	wpListTime_date,
	wpListTime_hour,
	wpListTime_file,
	wpListEvent,
	wpListEvent_file,

	wpGSensorGraph,
	wpGSensorGraphView,
	wpGSensor,
	wpGSensorView,
	wpGSensorCoordi,
	wpTimeBar,
	wpTitleBar,

	wpMainDisplay,
	wpFullDisplay,
	wpListHeader,

	wpSetupMain,
	wpSetupExit,
	wpSetupPanel,
	wpTitleBarLogo,
	MAX_WNDINFO,
};



